<div class="card">
	<div class="alert alert-warning" role="alert">视频经过云服务器转码成功后可以预览</div>
	<form method="POST" action="{{ path("admin_api_teach_chapter_vod", {id:id}) }}" class="form-horizontal ajaxform needs-validation" accept-charset="UTF-8" novalidate>
		<div class="card-body" style="display: block;">
			{{ formData|raw }}
			<div class="form-group  row" id="upload">
				<label class="col-sm-2 col-form-label">上传视频 :</label>
				<div class="col-sm-5">
					<div>
						<input type="file" id="fileUpload" @change="fileChange($event)">
					</div>
					<div>
						<button @click="authUpload" :disabled="uploadDisabled">开始上传</button>
						<button @click="pauseUpload" :disabled="pauseDisabled">暂停</button>
						<button :disabled="resumeDisabled" @click="resumeUpload">恢复上传</button>
					</div>

				</div>
				<div class="col-sm-4">
					<div class="status">上传状态:
						<span>${ statusText }</span>
					</div>
					<div>上传进度:${ authProgress }%</div>
				</div>
			</div>
		</div>
		<div class="card-footer">
			<div class="col-md-2"></div>
			<div class="col-md-8">
				<div class="btn-group">
					<button type="submit" class="btn btn-sm btn-info " style="margin-right: 10px;">提交</button>
					<button type="reset" class="btn btn-default btn-sm reset" style="margin-right: 10px;">
						<i class="fa fa-undo"></i>&nbsp;&nbsp;重置</button>
					{% if if_set(videoInfo, 'videoId') %}
						<button type="button" href="{{ path('admin_api_teach_chapter_ayncTranscode', {videoChannel:vodAdapter,videoId:if_set(videoInfo, 'videoId')}) }}" data-confirm="确认要重新转码吗?" title="转码" class="btn btn-danger btn-xs ajaxGet">转码</button>
					{% endif %}
				</div>
			</div>
		</div>
	</form>
	<div class="prism-player" id="playerDiv" style="margin-top: 20px;"></div>
</div>
